//
//  DYGroupingResultsTitleCell.m
//  DaYing
//
//  Created by DaYing  on 2023.
//  Copyright © 2023年 DaYing . All rights reserved.
//

#import "DYGroupingResultsTitleCell.h"

@implementation DYGroupingResultsTitleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setData:(id)data delegate:(id)delegate {
    
    if ([data isKindOfClass:[NSDictionary class]]) {
        if ([data[@"data"] isKindOfClass:[DYGroupingResultsTitleCellModel class]]) {
            DYGroupingResultsTitleCellModel *model = data[@"data"];
            _titleLabel.text = model.title;
        }
    }
}

@end


#pragma mark - Model

@implementation DYGroupingResultsTitleCellModel

+ (DYGroupingResultsTitleCellModel *)ittemModelWithTitle:(NSString *)title {
    DYGroupingResultsTitleCellModel *model = [DYGroupingResultsTitleCellModel new];
    model.title = kSafeString(title);
    return model;
}

@end
